﻿"use strict";
define(["service/service", "service/httpService"], function (service) {
    service.factory("tokenTransferService", function ($location, httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/tokenTransfer/gets", params);
            },
            get: function (params) {
                return httpService.post("/admin/tokenTransfer/get", params);
            },

            audit: function (id, status, remark) {
                return httpService.post("/admin/tokenTransfer/audit", { id: id, status: status, remark: remark });
            },
            payoff: function (id, status, transaction_no, remark) {
                return httpService.post("/admin/tokenTransfer/Payoff", { id: id, status: status, transaction_no: transaction_no, remark: remark });
            },
            transfer_first: function (merchant_no, order_no) {
                return httpService.post("/admin/tokenTransfer/transfer_first", { merchant_no: merchant_no, order_no: order_no });
            },
            update_bank: function (params) {
                return httpService.post("/admin/tokenTransfer/UpdateBank", params);
            },
        }
        return methods;
    });
});